package com.xgb.springcloudserver.controller;

import com.netflix.discovery.converters.Auto;
import com.xgb.springcloudserver.service.RibbonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description:
 * @author: chenzuolin
 * @time: 2021/3/8 22:18
 */
@RestController
public class HiController {

    @Autowired
    private RibbonService ribbonService;

    @GetMapping
    public String hi(String name){
        ribbonService.hello();
        return ribbonService.hi(name);
    }
}
